
<script setup lang="ts">
	import {getQingHua} from '@/api/requestList'
	import {ref, onBeforeMount} from 'vue'
	const msg = ref('hi')
	const count = ref(10)
	let tableData = ref([])
	async function getData() {
		const data = await getQingHua({hospitalId: 'HS0001',departmentId: ''})
		tableData.value = JSON.parse(data.data)
	}
	onBeforeMount(()=>{
		getData()
	})
 
</script>
<template>
	<h2>{{ msg }}</h2>
	<el-button @click="getData">查询</el-button>
	  <el-table :data="tableData" style="width: 100%">
	    <el-table-column prop="ID" label="Date" width="180" />
	    <el-table-column prop="Name" label="Name" width="180" />
	    <el-table-column prop="DepartmentName" label="Address" />
	  </el-table>
	  	<h2>{{ count }}</h2>
</template>
 
<style>
</style>